package edu.zut.cs.software.estateagent.logon.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import edu.zut.cs.software.base.service.impl.GenericManagerImpl;
import edu.zut.cs.software.estateagent.logon.dao.AuthorityDao;
import edu.zut.cs.software.estateagent.logon.domain.Authority;
import edu.zut.cs.software.estateagent.logon.service.AuthorityManager;

@Component
@Transactional
public class AuthorityManagerImpl extends GenericManagerImpl<Authority, Long> implements AuthorityManager {

	AuthorityDao authorityDao;

	@Override
	public Authority findbyUsername(String username) {
		// TODO Auto-generated method stub
		return null;
	}

	@Autowired
	public void setAuthorityDao(AuthorityDao authorityDao) {
		this.authorityDao = authorityDao;
		this.dao = this.authorityDao;
	}

}
